var esl = require('modesl'),
    conn = new esl.Connection('127.0.0.1', 8021, 'ClueCon', function() {
        // 之前重新生成了配置文件，后重启external生效
        conn.api('sofia profile external restart', function(res) {
            console.log(res.getBody());
            // conn.disconnect();
        });
    });